
       <nav class="main-menu navbar visible-lg visible-md" data-sticky-header="true">
            <h2 class="hidden">Main Navigation</h2>

            <div class="container">
                <div class="row">

                    <!-- Collect the nav links, forms, and other content for toggling -->
                    <div id="main-menu-navbar-collapse" class="collapse navbar-collapse">
                        <ul class="nav navbar-nav navbar-left">

                            <li class="dropdown color-theme active">
                                <a href="<?php echo base_url("home");?>" ><h3>{_ home}</h3><span class="nav-line"></span></a>
                            </li>

                            <li class="dropdown color-3">
                                <a href="<?php echo base_url("restaurant");?>"><h3>{_ restaurant}</h3><span class="nav-line"></span></a>
                            </li>

                            <li class="dropdown color-2">
                                <a href="<?php echo base_url("travel");?>" class="dropdown-toggle" data-hover="dropdown"><h3>แหล่งท่องเที่ยว</h3><span class="nav-line"></span></a>
                            </li>

                            <li class="dropdown color-theme">
                                <a href="<?php echo base_url("article");?>" class="dropdown-toggle" data-hover="dropdown"><h3>บทความ</h3><span class="nav-line"></span></a>
                            </li>


                            <li class="dropdown color-2">
                                <a href="#" class="dropdown-toggle" data-hover="dropdown"><h3>เว็บบอร์ด</h3><span class="nav-line"></span></a>
                            </li>


                        </ul>

                        <div class="pull-right">
                        <?php if(empty($user)){?>
                        <ul class="nav navbar-nav navbar-left">
                          <li ><a href="#" data-toggle="modal" data-target="#myModal"><h3>Sign in</h3><span class="nav-line"></span></a></li>
                          <li ><a href="<?php echo base_url("user/register");?>"><h3>Sign up</h3><span class="nav-line"></span></a></li>
                        </ul>
                        <?php
                          } else {
                        ?>
                          <div class="user-panel">
                            <a href="<?php echo base_url("user");?>"><span class="span-username"><?php echo "ยินดีต้อนรับ ".$user["first_name"]." ".$user["last_name"];?></span></a>
                            
                            <!-- Single button -->
                            <div class="btn-group">
                              <button type="button" class="btn btn-default btn-xs  dropdown-toggle" data-toggle="dropdown">
                                <span class="caret"></span>
                              </button>
                              <ul class="dropdown-menu pull-right" role="menu">
                                <li><a href="#">Another action</a></li>
                                <li><a href="#">Something else here</a></li>
                                <li><a href="#">Separated link</a></li>
                                <li><a href="<?php echo base_url("user/logout");?>">{_ logout}</a></li>
                              </ul>
                            </div>
                          </div>
                        <?php }?>
                        </div>
                    </div>
                    <!-- /.navbar-collapse -->
                </div>
            </div>
        </nav>
         
<!-- Modal -->


       